<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    var numbe = prompt('请输入几行星星');
    var lie = prompt('请输入几列星星');
    var str='';
    for (var i = 1;i <= numbe;i++){
        for(var o = 1;o <= lie;o++){
            str = str + '☆';
        }
        str = str + '\n';
    }
    console.log(str);
</script>
<body>

</body>
</html>